package cn.bisoft.java.bean.entity;

import java.io.Serializable;


/**
 * This is an object that contains data related to the AnteAngentReport table. Do not modify this class because it will
 * be overwritten if the configuration file related to this class is modified.
 * @hibernate.class table="AnteAngentReport"
 */

public abstract class BaseAnteAngentReport implements Serializable
{
	private static final long serialVersionUID = 1L;
	
	public static String REF = "AnteAngentReport";

	public static String PROP_COMMISION_TIME = "commisionTime";

	public static String PROP_GAME_ID = "gameId";

	public static String PROP_COMMISION_OPERATOR = "commisionOperator";

	public static String PROP_ISSUE_NAME = "issueName";

	public static String PROP_BONUS_MONEY = "bonusMoney";

	public static String PROP_WIN_STATE = "winState";

	public static String PROP_ISSUE_ID = "issueId";

	public static String PROP_COMMISION_RATE = "commisionRate";

	public static String PROP_SEQ_NO = "seqNo";

	public static String PROP_COUNTER_I_D = "counterID";

	public static String PROP_SALES_MONEY = "salesMoney";

	public static String PROP_SALES_REPORT_TIME = "salesReportTime";

	public static String PROP_WIN_REPORT_TIME = "winReportTime";

	public static String PROP_WIN_OPERATOR = "winOperator";

	public static String PROP_COMMISION_STATE = "commisionState";

	public static String PROP_STOP_TIME = "stopTime";

	public static String PROP_WIN_TIME = "winTime";

	// constructors
	public BaseAnteAngentReport()
	{
		initialize();
	}

	/**
	 * Constructor for primary key
	 */
	public BaseAnteAngentReport(java.lang.Long seqNo)
	{
		this.setSeqNo(seqNo);
		initialize();
	}

	/**
	 * Constructor for required fields
	 */
	public BaseAnteAngentReport(java.lang.Long seqNo, java.lang.String counterID, java.lang.Integer issueId,
			java.lang.String issueName, java.lang.Integer gameId, java.util.Date stopTime, java.lang.Integer winState,
			java.lang.Integer commisionState)
	{

		this.setSeqNo(seqNo);
		this.setCounterID(counterID);
		this.setIssueId(issueId);
		this.setIssueName(issueName);
		this.setGameId(gameId);
		this.setStopTime(stopTime);
		this.setWinState(winState);
		this.setCommisionState(commisionState);
		initialize();
	}

	protected void initialize()
	{
	}

	private int hashCode = Integer.MIN_VALUE;

	// primary key
	private java.lang.Long seqNo;

	// fields
	private java.lang.String counterID;

	private java.lang.Integer issueId;

	private java.lang.String issueName;

	private java.lang.Integer gameId;

	private java.util.Date stopTime;

	private java.lang.Long salesMoney;

	private java.lang.Double bonusMoney;

	private java.lang.Integer commisionRate;

	private java.util.Date salesReportTime;

	private java.util.Date winReportTime;

	private java.lang.Integer winState;

	private java.util.Date winTime;

	private java.lang.String winOperator;

	private java.lang.Integer commisionState;

	private java.util.Date commisionTime;

	private java.lang.String commisionOperator;

	/**
	 * Return the unique identifier of this class
	 * @hibernate.id generator-class="native" column="SeqNo"
	 */
	public java.lang.Long getSeqNo()
	{
		return seqNo;
	}

	/**
	 * Set the unique identifier of this class
	 * @param seqNo the new ID
	 */
	public void setSeqNo(java.lang.Long seqNo)
	{
		this.seqNo = seqNo;
		this.hashCode = Integer.MIN_VALUE;
	}

	/**
	 * Return the value associated with the column: CounterID
	 */
	public java.lang.String getCounterID()
	{
		return counterID;
	}

	/**
	 * Set the value related to the column: CounterID
	 * @param counterID the CounterID value
	 */
	public void setCounterID(java.lang.String counterID)
	{
		this.counterID = counterID;
	}

	/**
	 * Return the value associated with the column: IssueId
	 */
	public java.lang.Integer getIssueId()
	{
		return issueId;
	}

	/**
	 * Set the value related to the column: IssueId
	 * @param issueId the IssueId value
	 */
	public void setIssueId(java.lang.Integer issueId)
	{
		this.issueId = issueId;
	}

	/**
	 * Return the value associated with the column: IssueName
	 */
	public java.lang.String getIssueName()
	{
		return issueName;
	}

	/**
	 * Set the value related to the column: IssueName
	 * @param issueName the IssueName value
	 */
	public void setIssueName(java.lang.String issueName)
	{
		this.issueName = issueName;
	}

	/**
	 * Return the value associated with the column: GameId
	 */
	public java.lang.Integer getGameId()
	{
		return gameId;
	}

	/**
	 * Set the value related to the column: GameId
	 * @param gameId the GameId value
	 */
	public void setGameId(java.lang.Integer gameId)
	{
		this.gameId = gameId;
	}

	/**
	 * Return the value associated with the column: StopTime
	 */
	public java.util.Date getStopTime()
	{
		return stopTime;
	}

	/**
	 * Set the value related to the column: StopTime
	 * @param stopTime the StopTime value
	 */
	public void setStopTime(java.util.Date stopTime)
	{
		this.stopTime = stopTime;
	}

	/**
	 * Return the value associated with the column: SalesMoney
	 */
	public java.lang.Long getSalesMoney()
	{
		return salesMoney;
	}

	/**
	 * Set the value related to the column: SalesMoney
	 * @param salesMoney the SalesMoney value
	 */
	public void setSalesMoney(java.lang.Long salesMoney)
	{
		this.salesMoney = salesMoney;
	}

	/**
	 * Return the value associated with the column: BonusMoney
	 */
	public java.lang.Double getBonusMoney()
	{
		return bonusMoney;
	}

	/**
	 * Set the value related to the column: BonusMoney
	 * @param bonusMoney the BonusMoney value
	 */
	public void setBonusMoney(java.lang.Double bonusMoney)
	{
		this.bonusMoney = bonusMoney;
	}

	/**
	 * Return the value associated with the column: CommisionRate
	 */
	public java.lang.Integer getCommisionRate()
	{
		return commisionRate;
	}

	/**
	 * Set the value related to the column: CommisionRate
	 * @param commisionRate the CommisionRate value
	 */
	public void setCommisionRate(java.lang.Integer commisionRate)
	{
		this.commisionRate = commisionRate;
	}

	/**
	 * Return the value associated with the column: SalesReportTime
	 */
	public java.util.Date getSalesReportTime()
	{
		return salesReportTime;
	}

	/**
	 * Set the value related to the column: SalesReportTime
	 * @param salesReportTime the SalesReportTime value
	 */
	public void setSalesReportTime(java.util.Date salesReportTime)
	{
		this.salesReportTime = salesReportTime;
	}

	/**
	 * Return the value associated with the column: WinReportTime
	 */
	public java.util.Date getWinReportTime()
	{
		return winReportTime;
	}

	/**
	 * Set the value related to the column: WinReportTime
	 * @param winReportTime the WinReportTime value
	 */
	public void setWinReportTime(java.util.Date winReportTime)
	{
		this.winReportTime = winReportTime;
	}

	/**
	 * Return the value associated with the column: WinState
	 */
	public java.lang.Integer getWinState()
	{
		return winState;
	}

	/**
	 * Set the value related to the column: WinState
	 * @param winState the WinState value
	 */
	public void setWinState(java.lang.Integer winState)
	{
		this.winState = winState;
	}

	/**
	 * Return the value associated with the column: WinTime
	 */
	public java.util.Date getWinTime()
	{
		return winTime;
	}

	/**
	 * Set the value related to the column: WinTime
	 * @param winTime the WinTime value
	 */
	public void setWinTime(java.util.Date winTime)
	{
		this.winTime = winTime;
	}

	/**
	 * Return the value associated with the column: winOperator
	 */
	public java.lang.String getWinOperator()
	{
		return winOperator;
	}

	/**
	 * Set the value related to the column: winOperator
	 * @param winOperator the winOperator value
	 */
	public void setWinOperator(java.lang.String winOperator)
	{
		this.winOperator = winOperator;
	}

	/**
	 * Return the value associated with the column: CommisionState
	 */
	public java.lang.Integer getCommisionState()
	{
		return commisionState;
	}

	/**
	 * Set the value related to the column: CommisionState
	 * @param commisionState the CommisionState value
	 */
	public void setCommisionState(java.lang.Integer commisionState)
	{
		this.commisionState = commisionState;
	}

	/**
	 * Return the value associated with the column: CommisionTime
	 */
	public java.util.Date getCommisionTime()
	{
		return commisionTime;
	}

	/**
	 * Set the value related to the column: CommisionTime
	 * @param commisionTime the CommisionTime value
	 */
	public void setCommisionTime(java.util.Date commisionTime)
	{
		this.commisionTime = commisionTime;
	}

	/**
	 * Return the value associated with the column: CommisionOperator
	 */
	public java.lang.String getCommisionOperator()
	{
		return commisionOperator;
	}

	/**
	 * Set the value related to the column: CommisionOperator
	 * @param commisionOperator the CommisionOperator value
	 */
	public void setCommisionOperator(java.lang.String commisionOperator)
	{
		this.commisionOperator = commisionOperator;
	}

	public boolean equals(Object obj)
	{
		if (null == obj)
			return false;
		if (!(obj instanceof AnteAngentReport))
			return false;
		else
		{
			AnteAngentReport anteAngentReport = (AnteAngentReport) obj;
			if (null == this.getSeqNo() || null == anteAngentReport.getSeqNo())
				return false;
			else
				return (this.getSeqNo().equals(anteAngentReport.getSeqNo()));
		}
	}

	public int hashCode()
	{
		if (Integer.MIN_VALUE == this.hashCode)
		{
			if (null == this.getSeqNo())
				return super.hashCode();
			else
			{
				String hashStr = this.getClass().getName() + ":" + this.getSeqNo().hashCode();
				this.hashCode = hashStr.hashCode();
			}
		}
		return this.hashCode;
	}

	public String toString()
	{
		return super.toString();
	}

}